<template>
    <view class="globe_back">
        <view class="maxtitle">已完成，继续接单吧</view>
        <view class="back_fff list">
            <view class="flex justify_content_between pt_24">
                <view class="round" style="background: #3377ff">服</view>
                <view class="title">上门检修故障</view>
            </view>
            <view class="flex justify_content_between pt_24">
                <view class="round" style="background: #3377ff">目</view>
                <view class="title">
                    <view class="address">贵阳市南明区花果园金融街一号老凤祥贵阳市南明区花果园金融</view>
                    <view>
                        <text class="iphone">9.5km</text>
                        <text class="name">王先生</text>
                        <text class="iphone">156****5412</text>
                    </view>
                </view>
            </view>
        </view>
        <!-- 描述照片 -->
        <view class="store">
            <view class="title">描述照片</view>
            <view class="infoImgBox">
                <image class="infoimg" src="@/static/imgs/img.png" mode="widthFix"></image>
                <image class="infoimg" src="@/static/imgs/img.png" mode="widthFix"></image>
                <image class="infoimg" src="@/static/imgs/img.png" mode="widthFix"></image>
            </view>
        </view>
        <!-- 信息 -->
        <view class="store">
            <view class="flex justify_content_between detailed">
                <view>服务类型</view>
                <view>上门检测故障</view>
            </view>
            <view class="flex justify_content_between detailed">
                <view>是否加急</view>
                <view>是</view>
            </view>
            <view class="flex justify_content_between detailed">
                <view>下单时间</view>
                <view>2022-10-26 14:30:26</view>
            </view>
            <view class="flex justify_content_between detailed">
                <view>接单时间</view>
                <view>2022-10-26 14:30:26</view>
            </view>
            <view class="flex justify_content_between detailed">
                <view>到达目的地时间</view>
                <view>2022-10-26 14:30:26</view>
            </view>
            <view class="flex justify_content_between detailed">
                <view>服务完成时间</view>
                <view>2022-10-26 14:30:26</view>
            </view>
        </view>

        <view class="store">
            <view class="flex justify_content_between detailed">
                <view>订单佣金</view>
                <view class="cl_FF6401" v-if="type == 0">￥20.00</view>
                <view v-if="type == 1">￥20.00</view>
            </view>
            <view class="flex justify_content_between detailed" v-if="type == 1">
                <view>超时扣款</view>
                <view>￥10.00</view>
            </view>
            <view class="flex justify_content_between detailed" v-if="type == 1">
                <view>合计</view>
                <view class="cl_FF6401">￥10.05</view>
            </view>
        </view>

        <view style="height: 20px"></view>
    </view>
</template>

<script>
export default {
    data() {
        return {
            count: 5,
            value: 5,
            latitude: 39.909,
            longitude: 116.39742,
            type: 1,
            covers: [],
            locationData: [
                {
                    name: '我的位置',
                    location: { latitude: 39.909, longitude: 116.39742 },
                    id: 0
                },
                {
                    name: '服务位置',
                    location: { latitude: 39.909, longitude: 116.39742 },
                    id: 1
                }
            ]
        };
    },
    onLoad(e) {
        this.type = e.type;
        this.init();
    },
    methods: {
        init() {
            let _this = this;
            uni.getLocation({
                type: 'gcj02',
                success(e) {
                    _this.latitude = e.latitude;
                    _this.longitude = e.longitude;
                    console.log(e);
                    _this.getTeamList();
                }
            });
        },

        isBack() {
            this.$api.authBack();
            // this.isOpen()
        },
        setExchange() {
            // this.locationData.reverse();
        },
        isOpen() {
            this.$refs.popup.open();
        },
        isClose() {
            this.$refs.popup.close();
        }
    }
};
</script>

<style scoped lang="scss">
.mapW {
    width: 100%;
    min-height: 40vh;
}
.maxtitle {
    font-size: 40rpx;
    font-weight: bold;
    padding: 24rpx 32rpx;
}
.phoneBtn {
    width: 230rpx;
    height: 100rpx;
    line-height: 100rpx;
    background: #f7f7f7;
    border-radius: 16rpx;
    margin-top: 24rpx;
    margin-right: 24rpx;
    vertical-align: middle;
    text-align: center;
    display: inline-block;
}
.icon_dh {
    width: 28rpx;
    height: 28rpx;
    margin-right: 12rpx;
}
.addBtn1 {
    width: 423rpx;
    height: 100rpx;
    line-height: 100rpx;
    text-align: center;
    background: #3377ff;
    border-radius: 16rpx;
    margin-top: 24rpx;
    color: white;
}
.smaz {
    width: 112rpx;
    height: 48rpx;
    background: #3377ff;
    border-radius: 8rpx 8rpx 8rpx 8rpx;
    color: white;
    font-size: 28rpx;
    text-align: center;
    padding: 8rpx;
    margin-left: 24rpx;
}
.reBtn {
    width: 686rpx;
    height: 100rpx;
    background: #3377ff;
    box-shadow: 0rpx 4rpx 16rpx 0rpx rgba(51, 119, 255, 0.05);
    border-radius: 24rpx 24rpx 24rpx 24rpx;
    color: #ffffff;
    line-height: 100rpx;
    text-align: center;
    margin: 24rpx auto;
}
.cover-box {
    margin-top: 160rpx;
    padding: 0 32rpx;
    .log-1 {
        width: 16rpx;
        height: 16rpx;
        border-radius: 16rpx;
        background-color: #3377ff;
    }
    .log-line {
        width: 2rpx;
        height: 40rpx;
        background-color: #ccced1;
        margin: 10rpx 0;
    }
    .log-2 {
        width: 16rpx;
        height: 16rpx;
        border-radius: 16rpx;
        background-color: #ff6401;
    }
}
.next-icon {
    position: fixed;
    left: 32rpx;
    top: 100rpx;
}
.list {
    padding: 24rpx;
    border-radius: 24rpx;
    margin: 24rpx 32rpx;
    .round {
        width: 40rpx;
        height: 40rpx;
        border-radius: 16rpx;
        background: #00091a;
        font-size: 28rpx;
        color: white;
        text-align: center;
        line-height: 40rpx;
    }
    .type {
        color: #3377ff;
        font-weight: bold;
    }
    .time {
        color: #ccced1;
    }
    .title {
        width: 90%;
        color: #00091a;
        font-size: 32rpx;
        font-weight: bold;
    }
    .address {
        display: inline-block;
        white-space: nowrap;
        width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .name {
        font-weight: normal;
        color: #333a47;
        margin-right: 24rpx;
    }
    .iphone {
        font-weight: normal;
        color: #999ca3;
    }
    .money {
        text-align: right;
        color: #666b75;
    }
    .money text {
        color: #ff6401;
        font-weight: bold;
        font-size: 32rpx;
    }
    .btn {
        text-align: right;
    }
    .cance {
        width: 160rpx;
        height: 68rpx;
        line-height: 68rpx;
        border-radius: 8rpx;
        color: #666b75;
        text-align: center;
        border: 2rpx solid #ccced1;
        margin-top: 24rpx;
    }
    .buy {
        width: 160rpx;
        height: 68rpx;
        line-height: 68rpx;
        border-radius: 8rpx;
        color: #ffffff;
        text-align: center;
        background: #3377ff;
        margin-left: 24rpx;
        margin-top: 24rpx;
    }
}
.title {
    font-size: 28rpx;
    color: #333a47;
}
.infoimg {
    width: 140rpx;
    height: 140rpx;
    border-radius: 16rpx;
    margin: 24rpx 12rpx;
}
.store {
    padding: 24rpx;
    background: white;
    border-radius: 24rpx;
    margin: 0 32rpx 24rpx;
}
.storeImg {
    width: 96rpx;
    height: 96rpx;
    border-radius: 16rpx;
    margin-right: 16rpx;
}
.storeTitle {
    color: #00091a;
    font-size: 32rpx;
    margin-bottom: 8rpx;
}
.address {
    width: 48rpx;
    height: 48rpx;
    display: block;
    margin: 0 auto;
}
.addressText {
    color: #999ca3;
    font-size: 24rpx;
}
.salesVolume {
    color: #999ca3;
    font-size: 28rpx;
}
.detailed {
    color: #333a47;
    font-size: 28rpx;
    margin-bottom: 32rpx;
}
</style>
